Conversation
Setup and doctor now run an auto-finish sweep for clean pending agent/* branches against the current local base branch (including protected-main doctor sandbox runs). This closes the common gap where branch worktrees stayed local/visible in VS Code after work was done. Added regression coverage for protected-main doctor flow and a metadata parity guard so runtime codex-agent helper stays aligned with templates. Constraint: Keep protected-main write policy intact while enabling post-doctor auto-finish via sandbox-safe path Rejected: Force-commit dirty pending branches automatically | risks shipping partial/unreviewed work Confidence: medium Scope-risk: moderate Reversibility: clean Directive: If auto-finish sweep behavior changes, update doctor/setup output and test fixtures together Tested: node --check bin/multiagent-safety.js; node --test test/install.test.js; node --test test/metadata.test.js; npm test Not-tested: Live GitHub required-check wait behavior in a real protected remote
…ent-branches-on-session-end
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Setup and doctor now run an auto-finish sweep for clean pending agent/* branches against the current local base branch (including protected-main doctor sandbox runs). This closes the common gap where branch worktrees stayed local/visible in VS Code after work was done. Added regression coverage for protected-main doctor flow and a metadata parity guard so runtime codex-agent helper stays aligned with templates.
Constraint: Keep protected-main write policy intact while enabling post-doctor auto-finish via sandbox-safe path
Rejected: Force-commit dirty pending branches automatically | risks shipping partial/unreviewed work
Confidence: medium
Scope-risk: moderate
Reversibility: clean
Directive: If auto-finish sweep behavior changes, update doctor/setup output and test fixtures together
Tested: node --check bin/multiagent-safety.js; node --test test/install.test.js; node --test test/metadata.test.js; npm test
Not-tested: Live GitHub required-check wait behavior in a real protected remote